package com.po;

import java.util.Date;

/**
 * AbstractOpClientLogId entity provides the base persistence definition of the
 * OpClientLogId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractOpClientLogId implements java.io.Serializable {

	// Fields

	private String logId;
	private String clientName;
	private String clientState;
	private Date createTime;

	// Constructors

	/** default constructor */
	public AbstractOpClientLogId() {
	}

	/** full constructor */
	public AbstractOpClientLogId(String logId, String clientName,
			String clientState, Date createTime) {
		this.logId = logId;
		this.clientName = clientName;
		this.clientState = clientState;
		this.createTime = createTime;
	}

	// Property accessors

	public String getLogId() {
		return this.logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getClientName() {
		return this.clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public String getClientState() {
		return this.clientState;
	}

	public void setClientState(String clientState) {
		this.clientState = clientState;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractOpClientLogId))
			return false;
		AbstractOpClientLogId castOther = (AbstractOpClientLogId) other;

		return ((this.getLogId() == castOther.getLogId()) || (this.getLogId() != null
				&& castOther.getLogId() != null && this.getLogId().equals(
				castOther.getLogId())))
				&& ((this.getClientName() == castOther.getClientName()) || (this
						.getClientName() != null
						&& castOther.getClientName() != null && this
						.getClientName().equals(castOther.getClientName())))
				&& ((this.getClientState() == castOther.getClientState()) || (this
						.getClientState() != null
						&& castOther.getClientState() != null && this
						.getClientState().equals(castOther.getClientState())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getLogId() == null ? 0 : this.getLogId().hashCode());
		result = 37
				* result
				+ (getClientName() == null ? 0 : this.getClientName()
						.hashCode());
		result = 37
				* result
				+ (getClientState() == null ? 0 : this.getClientState()
						.hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		return result;
	}

}